/**
 * JAVACC DEMO 1.0
 */
package com.apache.excp.core.impl;

import com.apache.excp.core.impl.exp.ExportExeclImpl;
import com.apache.excp.core.impl.exp.ExportWordImpl;
import com.apache.excp.core.impl.imp.ImportExeclImpl;
import com.apache.excp.core.manager.ExportExecl;
import com.apache.excp.core.manager.ImportExecl;

/**
 * description:  
 * @author Hou Dayu 创建时间：2016-7-29
 */
public class LoadManager {

	private ExportExecl exp;
	private ImportExecl imp;
	private ExportExecl expWord;

	private static LoadManager instance;

	private LoadManager() {
	}

	public static LoadManager getInstance() {
		if (null == instance) {
			instance = new LoadManager();
		}
		return instance;
	}

	/**
	 * description:  导出数据到excel中的接口
	 * @return   
	 * @author Hou Dayu  
	 * @update 2014-7-30
	 */
	public ExportExecl getExp() {
		if (null == exp) {
			exp = new ExportExeclImpl();
		}
		return exp;
	}

	/**
	 * description:  导入excel数据到bean模型中的接口
	 * @return   
	 * @author Hou Dayu  
	 * @update 2014-7-30
	 */
	public ImportExecl getImp() {
		if (null == imp) {
			imp = new ImportExeclImpl();
		}
		return imp;
	}

	/**
	 * description:  导出数据到word中的接口
	 * @return   
	 * @author Hou Dayu  
	 * @update 2014-7-30
	 */
	public ExportExecl getExpWord() {
		if (null == expWord) {
			expWord = new ExportWordImpl();
		}
		return expWord;
	}
}
